package org.dromara.wms.domain;

  import org.dromara.common.tenant.core.TenantEntity;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import jakarta.validation.constraints.*;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 工序管理对象 wms_process
 *
 * @author wenrui Su
 * @date 2024-05-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_process")
public class WmsProcess extends TenantEntity {

@Serial
private static final long serialVersionUID=1L;

  @ExcelProperty(value = "主键")
  @TableId(value = "id")
  private Long id;

  @ExcelProperty(value = "工序名称")
  @NotBlank(message = "工序名称不能为空", groups = { AddGroup.class, EditGroup.class })
  private String name;

  @ExcelProperty(value = "工艺类别", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "wms_process_tree")
  private String treeValue;

  @ExcelProperty(value = "工艺要求")
  private String attention;

  @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_status")
  @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
  private String status;

  @ExcelProperty(value = "备注")
  private String remark;
}
